<%--
  Created by IntelliJ IDEA.
  User: wanggege
  Date: 2020/9/10
  Time: 10:28 下午
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="common/head.jsp"%>
<div class="container">
<div class="location">
    <strong>你现在所在的位置是:</strong>
    <span>班级管理 >> 修改班级</span>
    <div style="width:500px; margin: 0 auto;">
        <form action="ClassServlet?param=update" method="post">
            <input class="form-control" type="text" name="cid" value="${sessionScope.clazz.cid}" readonly><br>
            <select class="form-control" name="className" required>
                <c:set var="className" value="${sessionScope.clazz.className}" scope="session"></c:set>
                <option>==请选择班级==</option>
                <option value="1班" name="className" <c:if test="${ '1班' == className }">selected</c:if> >1班</option>
                <option value="2班" name="className" <c:if test="${ '2班' == className }">selected</c:if> >2班</option>
                <option value="3班" name="className" <c:if test="${ '3班' == className }">selected</c:if> >3班</option>
                <option value="4班" name="className" <c:if test="${ '4班' == className }">selected</c:if> >4班</option>
                <option value="5班" name="className" <c:if test="${ '5班' == className }">selected</c:if> >5班</option>
                <option value="6班" name="className" <c:if test="${ '6班' == className }">selected</c:if> >6班</option>
            </select><br>
            <select class="form-control" name="grade"  required>
                <option>==请选择年级==</option>
                <c:set var="grade" value="${sessionScope.clazz.grade}" scope="session"></c:set>
                <option value="1年级" name="grade" <c:if test="${ '1年级' == grade }">selected</c:if> >1年级</option>
                <option value="2年级" name="grade" <c:if test="${ '2年级' == grade }">selected</c:if> >2年级</option>
                <option value="3年级" name="grade" <c:if test="${ '3年级' == grade }">selected</c:if> >3年级</option>
            </select><br>
            <input class="form-control" type="text" name="teacher" required placeholder="请输入班主任姓名" value="${sessionScope.clazz.teacher}" maxlength="20"><br>
            <input class="form-control" type="text" name="slogan" placeholder="请输入班级口号"  value="${sessionScope.clazz.slogan}" maxlength="50" required><br>
            <input class="form-control" type="number" name="size" maxlength="100" placeholder="请输入人数" value="${sessionScope.clazz.size}" required><br>
            <input id="add" type="submit" value="确认修改" class="form-control btn-success" style="font-size: 1.2em; color: black;width: 180px;height: 50px;">
        </form>
    </div>
</div>
</div>
